﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;
using Module;

namespace BLL
{
    public class BTag
    {
        #region 字段

        private DTag APP = new DTag();//数据操作对象
        private static BTag instance;

        #endregion

        #region 公共接口
        /// <summary>
        /// 取得
        /// </summary>
        /// <returns>BTag对象</returns>
        public static BTag getInstance()
        {
            if (instance == null)
            {
                instance = new BTag();
            }
            return instance;
        }

         /// <summary>
        /// 添加
        /// </summary>
        /// <param name="tagInfo"></param>
        /// <returns></returns>
        public bool Insert(TagInfo tagInfo)
        {
            if (tagInfo == null || tagInfo.TagId == 0)
                return false;
            return APP.Insert(tagInfo);

        }
         /// <summary>
        /// 获取所有标签
        /// </summary>
        /// <returns></returns>
        public List<TagInfo> GetAllTagInfo()
        {
            return APP.GetAllTagInfo();
        }
        #endregion
    }
}
